package com.scsj.supermarket.base;

import android.content.Context;

import com.scsj.supermarket.bean.LoginBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 登录的基础类，在这里实现MVP,分别定义view，presenter，model中所需的方法
 */

public class LoginBase {

    public interface IView {

        void showSuccessMsg(String s,LoginBean loginBean);

        void showErrorMsg(String s);

    }

    public interface IPresenter {

        void deliverList(Context context,RequestBody requestBody);
    }

    public interface IModel {

        Subscription getData(RequestBody requestBody, ResponseCallback<LoginBean> callback);
    }
}
